package routerGroup

import (
	"coursedesign/projectGo/controller"
	"github.com/gin-gonic/gin"
)

func deliverGroup(r *gin.Engine) {
	deliverRoutes := r.Group("/deliver")
	deliverController := controller.NewDeliverController()
	deliverRoutes.GET("", deliverController.PageList)        // 展示货物信息
	deliverRoutes.POST("", deliverController.Create)         // 创建货物
	deliverRoutes.PUT("/:uuid", deliverController.Update)    // 更新信息
	deliverRoutes.DELETE("/:uuid", deliverController.Delete) // 删除信息
	deliverRoutes.GET("/visual", deliverController.Visual)
}
